 <div id="currency" class="currency">
<?php echo form_open('currency'); ?>
		<h5>Currency</h5>
		<?php $currency = $this->currency_model->getCurrency(); ?>
		<?php foreach($currency as $valc){ ?>
			<?php if($valc->status == 1) {?>  
				<?php if($valc->symbol_left == NULL){ ?>
					<a name="<?php echo $valc->code; ?>" href="" title="<?php echo $valc->title;?>" onclick="alert('<?php echo $valc->currency_id; ?>')"><?php echo $valc->symbol_right; ?></a>
				<?php }else if($valc->symbol_right == NULL){ ?>
					<a name="<?php echo $valc->code; ?>" href="" title="<?php echo $valc->title;?>" onclick="alert('<?php echo $valc->currency_id; ?>')"><?php echo $valc->symbol_left; ?></a>	
				<?php } ?>  
			<?php } ?>  
		<?php } ?>
<?php echo form_close(); ?>
</div>